]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
style: Don't clip scrolling folder icons until they touch the border
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Mon, 27 Nov 2023 06:49:05 +0000 (14:49 +0800)
committerMarge Bot <marge-bot@gnome.org>
Fri, 1 Dec 2023 12:30:59 +0000 (12:30 +0000)
In the absence of a fade-out it doesn't make sense to clip them sooner
than that.

So now we make the left and right padding equal to the border
("box-shadow") width and leave the top/bottom padding unchanged.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3031>

data/theme/gnome-shell-sass/widgets/_app-grid.scss

index 3c8eda4115cc2caa36b13f1818718a0eff187655..1231f91e1f2c96b4b57273b46245875655c5bce4 100644 (file)
@@ -41,11 +41,13 @@ $app_icon_size: 96px;
 .app-folder-dialog {
   border-radius: $modal_radius*4;
   background-color: $system_overlay_bg_color;
-  padding: $base_padding*2;
-  box-shadow:inset 0 0 0 1px $system_borders_color;
 
   @if $is_highcontrast {
-    box-shadow:inset 0 0 0 2px $hc_inset_color;
+    padding: $base_padding*2 2px $base_padding*2 2px;
+    box-shadow: inset 0 0 0 2px $hc_inset_color;
+  } @else {
+    padding: $base_padding*2 1px $base_padding*2 1px;
+    box-shadow: inset 0 0 0 1px $system_borders_color;
   }
 
   & .folder-name-container {